/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.map.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.service.BaseService;
import com.thinkgem.jeesite.modules.map.dao.MapDao;

/**
 * 生成方案Service
 * @author ThinkGem
 * @version 2013-10-15
 */
@Service
@Transactional(readOnly = true)
public class MapService extends BaseService {

	@Autowired
	private MapDao mapDao;

	
	@Transactional(readOnly = false)
    public Map<String,Object> getMapData(){
		Map<String,Object> result = new HashMap<String,Object>();
		result.put("n", mapDao.nyList());
		result.put("l",mapDao.lyList());
		result.put("xm", mapDao.xmyList());
		result.put("y", mapDao.yyList());
		
		result.put("nd", mapDao.nydList());
		result.put("ld",mapDao.lydList());
		result.put("xmd", mapDao.xmydList());
		result.put("yd", mapDao.yydList());
		return result;
		
	}
	
}
